package com.daka.service.impl;

import com.daka.dao.ApproveAddressMapper;
import com.daka.entity.ApproveAddress;
import com.daka.service.ApproveAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangx
 * CreateTime: 2016/9/27 16:16
 */

@Service("approveAddressService")
@SuppressWarnings("unused")
public class ApproveAddressServiceImpl implements ApproveAddressService {

    @Autowired
    private ApproveAddressMapper approveAddressMapper;

    @Override
    public int insert(ApproveAddress po) {
        return approveAddressMapper.insert(po);
    }

    @Override
    public int update(ApproveAddress po) {
        return approveAddressMapper.updateByPrimaryKeySelective(po);
    }

    @Override
    public ApproveAddress selectById(Integer id) {
        return approveAddressMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ApproveAddress> selectByStatement(ApproveAddress po) {
        return approveAddressMapper.selectByStatement(po);
    }

    @Override
    public ApproveAddress selectByAddress(Long id) {
        return approveAddressMapper.selectByAddress(id);
    }
}
